From 3db2123c09fdea48453af98ce070c7ad02adf2bc Mon Sep 17 00:00:00 2001 From: Eric Yang Date: Thu, 10 Oct 2024 17:22:27 -0700 Subject: [PATCH] Restructure the file dirs --- ci/playwright_test.py | 4 ++-- .../screenshots_golden/chrome-linux}/graphdef.png | Bin .../screenshots_golden/chrome-linux}/homepage.png | Bin .../chrome-linux}/litert_direct.png | Bin .../chrome-linux}/litert_mlir.png | Bin .../screenshots_golden/chrome-linux}/shlo_mlir.png | Bin .../screenshots_golden/chrome-linux}/tf_direct.png | Bin .../screenshots_golden/chrome-linux}/tf_mlir.png | Bin .../test_models}/fully_connected.tflite | Bin .../test => test/test_models}/graphdef_foo.pbtxt | 0 .../test_models}/simple_add/saved_model.pb | Bin .../test => test/test_models}/stablehlo_sin.mlir | 0 12 files changed, 2 insertions(+), 2 deletions(-) rename {src/server/screenshots => test/screenshots_golden/chrome-linux}/graphdef.png (100%) rename {src/server/screenshots => test/screenshots_golden/chrome-linux}/homepage.png (100%) rename {src/server/screenshots => test/screenshots_golden/chrome-linux}/litert_direct.png (100%) rename {src/server/screenshots => test/screenshots_golden/chrome-linux}/litert_mlir.png (100%) rename {src/server/screenshots => test/screenshots_golden/chrome-linux}/shlo_mlir.png (100%) rename {src/server/screenshots => test/screenshots_golden/chrome-linux}/tf_direct.png (100%) rename {src/server/screenshots => test/screenshots_golden/chrome-linux}/tf_mlir.png (100%) rename {src/server/test => test/test_models}/fully_connected.tflite (100%) rename {src/server/test => test/test_models}/graphdef_foo.pbtxt (100%) rename {src/server/test => test/test_models}/simple_add/saved_model.pb (100%) rename {src/server/test => test/test_models}/stablehlo_sin.mlir (100%) diff --git a/ci/playwright_test.py b/ci/playwright_test.py index 800dbe8d..ca5f2e5d 100644 --- a/ci/playwright_test.py +++ b/ci/playwright_test.py @@ -21,9 +21,9 @@ LOCAL_SERVER = "http://127.0.0.1:8080//" ROOT_DIR = Path(__file__).parent.parent -TEST_FILES_DIR = ROOT_DIR / "src/server/test" +TEST_FILES_DIR = ROOT_DIR / "test/test_models" TMP_SCREENSHOT_DIR = ROOT_DIR / "build" -EXPECTED_SCREENSHOT_DIR = ROOT_DIR / "src/server/screenshots" +EXPECTED_SCREENSHOT_DIR = ROOT_DIR / "test/screenshots_golden/chrome-linux" def matched_images( diff --git a/src/server/screenshots/graphdef.png b/test/screenshots_golden/chrome-linux/graphdef.png similarity index 100% rename from src/server/screenshots/graphdef.png rename to test/screenshots_golden/chrome-linux/graphdef.png diff --git a/src/server/screenshots/homepage.png b/test/screenshots_golden/chrome-linux/homepage.png similarity index 100% rename from src/server/screenshots/homepage.png rename to test/screenshots_golden/chrome-linux/homepage.png diff --git a/src/server/screenshots/litert_direct.png b/test/screenshots_golden/chrome-linux/litert_direct.png similarity index 100% rename from src/server/screenshots/litert_direct.png rename to test/screenshots_golden/chrome-linux/litert_direct.png diff --git a/src/server/screenshots/litert_mlir.png b/test/screenshots_golden/chrome-linux/litert_mlir.png similarity index 100% rename from src/server/screenshots/litert_mlir.png rename to test/screenshots_golden/chrome-linux/litert_mlir.png diff --git a/src/server/screenshots/shlo_mlir.png b/test/screenshots_golden/chrome-linux/shlo_mlir.png similarity index 100% rename from src/server/screenshots/shlo_mlir.png rename to test/screenshots_golden/chrome-linux/shlo_mlir.png diff --git a/src/server/screenshots/tf_direct.png b/test/screenshots_golden/chrome-linux/tf_direct.png similarity index 100% rename from src/server/screenshots/tf_direct.png rename to test/screenshots_golden/chrome-linux/tf_direct.png diff --git a/src/server/screenshots/tf_mlir.png b/test/screenshots_golden/chrome-linux/tf_mlir.png similarity index 100% rename from src/server/screenshots/tf_mlir.png rename to test/screenshots_golden/chrome-linux/tf_mlir.png diff --git a/src/server/test/fully_connected.tflite b/test/test_models/fully_connected.tflite similarity index 100% rename from src/server/test/fully_connected.tflite rename to test/test_models/fully_connected.tflite diff --git a/src/server/test/graphdef_foo.pbtxt b/test/test_models/graphdef_foo.pbtxt similarity index 100% rename from src/server/test/graphdef_foo.pbtxt rename to test/test_models/graphdef_foo.pbtxt diff --git a/src/server/test/simple_add/saved_model.pb b/test/test_models/simple_add/saved_model.pb similarity index 100% rename from src/server/test/simple_add/saved_model.pb rename to test/test_models/simple_add/saved_model.pb diff --git a/src/server/test/stablehlo_sin.mlir b/test/test_models/stablehlo_sin.mlir similarity index 100% rename from src/server/test/stablehlo_sin.mlir rename to test/test_models/stablehlo_sin.mlir