Combine the functionality of jq and jq_test
One binary is much simpler. ./jq --run-tests now runs the tests.
This commit is contained in:
1 parent
47e015e946
commit
a49402c53a
3 files changed
+11
-4
No files matched your search
@@ -10,7 +10,7 @@ static void run_jq_tests();
|
||||
|
||||
FILE* testdata;
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
int jq_testsuite(int argc, char* argv[]) {
|
||||
jv_test();
|
||||
if (argc == 1) {
|
||||
testdata = fopen("testdata", "r");
|
||||
@@ -26,6 +26,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
run_jq_tests();
|
||||
if (testdata != stdin) fclose(testdata);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user