summaryrefslogtreecommitdiffstats
path: root/test/jsmin-test.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/jsmin-test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/jsmin-test.c b/test/jsmin-test.c
new file mode 100644
index 0000000..b6c4a20
--- /dev/null
+++ b/test/jsmin-test.c
@@ -0,0 +1,12 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include "jsmin.c"
+
+extern int main(int argc, char* argv[]) {
+ if(argc <= 1) {
+ printf("usage: %s source.js output.min.js\n", argv[0]);
+ return 1;
+ }
+ minify_js(argv[1], argv[2]);
+ return 0;
+}