diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration_tests.rs | 28 | ||||
-rw-r--r-- | cli/tests/lock_check_err.json | 4 | ||||
-rw-r--r-- | cli/tests/lock_check_err.out | 2 | ||||
-rw-r--r-- | cli/tests/lock_check_err2.json | 9 | ||||
-rw-r--r-- | cli/tests/lock_check_err2.out | 2 | ||||
-rw-r--r-- | cli/tests/lock_check_ok.json | 4 | ||||
-rw-r--r-- | cli/tests/lock_check_ok2.json | 10 |
7 files changed, 59 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 503287716..dd9388014 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -352,6 +352,34 @@ itest!(_050_more_jsons { output: "050_more_jsons.ts.out", }); +itest!(lock_check_ok { + args: "run --lock=lock_check_ok.json http://127.0.0.1:4545/cli/tests/003_relative_import.ts", + output: "003_relative_import.ts.out", + http_server: true, +}); + +itest!(lock_check_ok2 { + args: "run 019_media_types.ts --lock=lock_check_ok2.json", + output: "019_media_types.ts.out", + http_server: true, +}); + +itest!(lock_check_err { + args: "run --lock=lock_check_err.json http://127.0.0.1:4545/cli/tests/003_relative_import.ts", + output: "lock_check_err.out", + check_stderr: true, + exit_code: 10, + http_server: true, +}); + +itest!(lock_check_err2 { + args: "run 019_media_types.ts --lock=lock_check_err2.json", + output: "lock_check_err2.out", + check_stderr: true, + exit_code: 10, + http_server: true, +}); + itest!(async_error { exit_code: 1, args: "run --reload async_error.ts", diff --git a/cli/tests/lock_check_err.json b/cli/tests/lock_check_err.json new file mode 100644 index 000000000..43fc53227 --- /dev/null +++ b/cli/tests/lock_check_err.json @@ -0,0 +1,4 @@ +{ + "http://127.0.0.1:4545/cli/tests/subdir/print_hello.ts": "5c93c66125878389f47f4abcac003f4be1276c5223612c26302460d71841e287", + "http://127.0.0.1:4545/cli/tests/003_relative_import.ts": "bad" +} diff --git a/cli/tests/lock_check_err.out b/cli/tests/lock_check_err.out new file mode 100644 index 000000000..823df3183 --- /dev/null +++ b/cli/tests/lock_check_err.out @@ -0,0 +1,2 @@ +[WILDCARD]Subresource integrety check failed --lock=lock_check_err.json +http://127.0.0.1:4545/cli/tests/003_relative_import.ts diff --git a/cli/tests/lock_check_err2.json b/cli/tests/lock_check_err2.json new file mode 100644 index 000000000..6958a72f4 --- /dev/null +++ b/cli/tests/lock_check_err2.json @@ -0,0 +1,9 @@ +{ + "http://localhost:4545/cli/tests/subdir/mt_text_javascript.j1.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18", + "http://localhost:4545/cli/tests/subdir/mt_text_typescript.t1.ts": "c320ab0a259760e5c78b9ea840af3cc29697109594a3a5b5cea47128102b3e9d", + "http://localhost:4545/cli/tests/subdir/mt_application_x_typescript.t4.ts": "42f66736fea7365ff17d5aa9b9655e8551eb81f360dcfb6b77acdd5c9f699e82", + "http://localhost:4545/cli/tests/subdir/mt_video_vdn.t2.ts": "54cc82ff3c3b0387df57c7bb8eda4dcd36cbbf499ea483b04ff22c5365d34744", + "http://localhost:4545/cli/tests/subdir/mt_application_x_javascript.j4.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18", + "http://localhost:4545/cli/tests/subdir/mt_application_ecmascript.j2.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18", + "http://localhost:4545/cli/tests/subdir/mt_video_mp2t.t3.ts": "ee0b46f757b5f78681a4eead44820c2349daef7a5903fe3c624f29dbc98772e1" +} diff --git a/cli/tests/lock_check_err2.out b/cli/tests/lock_check_err2.out new file mode 100644 index 000000000..fd8635a7f --- /dev/null +++ b/cli/tests/lock_check_err2.out @@ -0,0 +1,2 @@ +[WILDCARD]Subresource integrety check failed --lock=lock_check_err2.json +http://localhost:4545/cli/tests/subdir/mt_text_ecmascript.j3.js diff --git a/cli/tests/lock_check_ok.json b/cli/tests/lock_check_ok.json new file mode 100644 index 000000000..85670a5d6 --- /dev/null +++ b/cli/tests/lock_check_ok.json @@ -0,0 +1,4 @@ +{ + "http://127.0.0.1:4545/cli/tests/subdir/print_hello.ts": "5c93c66125878389f47f4abcac003f4be1276c5223612c26302460d71841e287", + "http://127.0.0.1:4545/cli/tests/003_relative_import.ts": "da3b7f60f5ff635dbc27f3e5e05420f0f2c34676f080ef935ea547116424adeb" +} diff --git a/cli/tests/lock_check_ok2.json b/cli/tests/lock_check_ok2.json new file mode 100644 index 000000000..78fc75a9a --- /dev/null +++ b/cli/tests/lock_check_ok2.json @@ -0,0 +1,10 @@ +{ + "http://localhost:4545/cli/tests/subdir/mt_application_ecmascript.j2.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18", + "http://localhost:4545/cli/tests/subdir/mt_text_ecmascript.j3.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18", + "http://localhost:4545/cli/tests/subdir/mt_video_vdn.t2.ts": "54cc82ff3c3b0387df57c7bb8eda4dcd36cbbf499ea483b04ff22c5365d34744", + "http://localhost:4545/cli/tests/subdir/mt_text_javascript.j1.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18", + "http://localhost:4545/cli/tests/subdir/mt_application_x_typescript.t4.ts": "42f66736fea7365ff17d5aa9b9655e8551eb81f360dcfb6b77acdd5c9f699e82", + "http://localhost:4545/cli/tests/subdir/mt_video_mp2t.t3.ts": "ee0b46f757b5f78681a4eead44820c2349daef7a5903fe3c624f29dbc98772e1", + "http://localhost:4545/cli/tests/subdir/mt_application_x_javascript.j4.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18", + "http://localhost:4545/cli/tests/subdir/mt_text_typescript.t1.ts": "c320ab0a259760e5c78b9ea840af3cc29697109594a3a5b5cea47128102b3e9d" +} |