============================================================================== Log is: log Started test_dsi.sh v1.2.0 as ttyler@ttyler0921 at Sun Feb 27 23:32:28 EST 2022. Loaded test configuration file: test_dsi.cfg Test Prep ============================================================================== Starting Version check test. ------------------------------------------------------------------------------ TEST 1, running: dsi -V dsi v1.3.0 PASSED TEST 1 ============================================================================== Bad Usage Tests, with DSI_STORAGE and DSI_TAG unset. ------------------------------------------------------------------------------ TEST 2, running: dsi t Error: No storage dir defined. Set DSI_STORAGE or specify '-s <storage_dir>'. PASSED TEST 2 ------------------------------------------------------------------------------ TEST 3, running: dsi c Error: For Create mode, specify '<tag>' or set DSI_TAG. PASSED TEST 3 ------------------------------------------------------------------------------ TEST 4, running: dsi c fgs Error: No storage dir defined. Set DSI_STORAGE or specify '-s <storage_dir>'. PASSED TEST 4 ------------------------------------------------------------------------------ TEST 5, running: dsi rm fgs Error: For Remove mode specify <tag>@<rev> or @<rev> (if DSI_TAG is set). PASSED TEST 5 ------------------------------------------------------------------------------ TEST 6, running: dsi rm fgs -s /tmp Error: For Remove mode specify <tag>@<rev> or @<rev> (if DSI_TAG is set). PASSED TEST 6 ------------------------------------------------------------------------------ TEST 7, running: dsi rm -s /tmp Error: For Remove mode specify <tag>@<rev> or @<rev> (if DSI_TAG is set). PASSED TEST 7 ------------------------------------------------------------------------------ TEST 8, running: dsi rm Error: For Remove mode specify <tag>@<rev> or @<rev> (if DSI_TAG is set). PASSED TEST 8 ------------------------------------------------------------------------------ TEST 9, running: dsi rmall Error: The Tag is unset. For RemoveAll mode specify <tag> or set DSI_TAG. PASSED TEST 9 ------------------------------------------------------------------------------ TEST 10, running: dsi rmall fgs@2 Error: For Remove All mode specify only <tag>, not <tag>@<rev>. PASSED TEST 10 ------------------------------------------------------------------------------ TEST 11, running: dsi l Error: For List mode, specify '<tag>' or set DSI_TAG. PASSED TEST 11 ------------------------------------------------------------------------------ TEST 12, running: dsi d Error: For Diff mode, specify '<tag>[@<rev>]' or set DSI_TAG. PASSED TEST 12 ============================================================================== Normal Flow Tests with DSI_STORAGE and DSI_TAG unset. ------------------------------------------------------------------------------ TEST 13, running: dsi i DSI system info: dsi v1.3.0 Tag Unset DSI Storage Dir: Unset Package Root: /Users/ttyler/pub/dsi/test PASSED TEST 13 ------------------------------------------------------------------------------ TEST 14, running: dsi c fgs Error: No storage dir defined. Set DSI_STORAGE or specify '-s <storage_dir>'. PASSED TEST 14 ------------------------------------------------------------------------------ TEST 15, running: dsi c fgs -i -s /Users/ttyler/dsi/test/storage/s1 Initializing DSI Storage Dir: /Users/ttyler/dsi/test/storage/s1 Initialized storage dir: /Users/ttyler/dsi/test/storage/s1 Creating image for DSI tag fgs in /Users/ttyler/pub/dsi/test Image fgs@1 created successfully. PASSED TEST 15 Test Note: DSI_STORAGE now set to /Users/ttyler/dsi/test/storage/s1 ------------------------------------------------------------------------------ TEST 16, running: dsi c fgs Creating image for DSI tag fgs in /Users/ttyler/pub/dsi/test Image fgs@2 created successfully. PASSED TEST 16 ------------------------------------------------------------------------------ TEST 17, running: dsi l fgs Listing images for fgs fgs.2.dsi fgs.1.dsi PASSED TEST 17 ------------------------------------------------------------------------------ TEST 18, running: dsi d fgs Diffing image against fgs@LATEST PASSED TEST 18 ------------------------------------------------------------------------------ TEST 19, running: dsi c fgs Creating image for DSI tag fgs in /Users/ttyler/pub/dsi/test Image fgs@3 created successfully. PASSED TEST 19 ------------------------------------------------------------------------------ TEST 20, running: dsi c fgs Creating image for DSI tag fgs in /Users/ttyler/pub/dsi/test Image fgs@4 created successfully. PASSED TEST 20 ------------------------------------------------------------------------------ TEST 21, running: dsi l fgs Listing images for fgs fgs.4.dsi fgs.3.dsi fgs.2.dsi fgs.1.dsi PASSED TEST 21 ------------------------------------------------------------------------------ TEST 22, running: dsi d fgs@2a Error: Value for revision [2a] must be LATEST or a positive integer. PASSED TEST 22 ------------------------------------------------------------------------------ TEST 23, running: dsi d fgs@2 Diffing image against fgs@2 PASSED TEST 23 ------------------------------------------------------------------------------ TEST 24, running: dsi rm fgs@LATEST Removing image fgs@LATEST PASSED TEST 24 ------------------------------------------------------------------------------ TEST 25, running: dsi l fgs Listing images for fgs fgs.4.dsi fgs.3.dsi fgs.2.dsi fgs.1.dsi PASSED TEST 25 ------------------------------------------------------------------------------ TEST 26, running: dsi rmall fgs Removing all images for fgs PASSED TEST 26 ============================================================================== Normal Flow Tests with: DSI_STORAGE=/Users/ttyler/dsi/test/storage/s1 DSI_TAG=fgs ------------------------------------------------------------------------------ TEST 27, running: dsi l Listing images for fgs fgs.4.dsi fgs.3.dsi fgs.2.dsi fgs.1.dsi PASSED TEST 27 ------------------------------------------------------------------------------ TEST 28, running: dsi c Creating image for DSI tag fgs in /Users/ttyler/pub/dsi/test Image fgs@5 created successfully. PASSED TEST 28 ------------------------------------------------------------------------------ TEST 29, running: dsi l Listing images for fgs fgs.5.dsi fgs.4.dsi fgs.3.dsi fgs.2.dsi fgs.1.dsi PASSED TEST 29 ------------------------------------------------------------------------------ TEST 30, running: dsi d Diffing image against fgs@LATEST PASSED TEST 30 ------------------------------------------------------------------------------ TEST 31, running: dsi c Creating image for DSI tag fgs in /Users/ttyler/pub/dsi/test Image fgs@6 created successfully. PASSED TEST 31 ------------------------------------------------------------------------------ TEST 32, running: dsi c Creating image for DSI tag fgs in /Users/ttyler/pub/dsi/test Image fgs@7 created successfully. PASSED TEST 32 ------------------------------------------------------------------------------ TEST 33, running: dsi l Listing images for fgs fgs.7.dsi fgs.6.dsi fgs.5.dsi fgs.4.dsi fgs.3.dsi fgs.2.dsi fgs.1.dsi PASSED TEST 33 ------------------------------------------------------------------------------ TEST 34, running: dsi d fgs@2 Diffing image against fgs@2 PASSED TEST 34 ------------------------------------------------------------------------------ TEST 35, running: dsi rm fgs@LATEST Removing image fgs@LATEST PASSED TEST 35 ------------------------------------------------------------------------------ TEST 36, running: dsi rm fgs@LATEST Removing image fgs@LATEST PASSED TEST 36 ------------------------------------------------------------------------------ TEST 37, running: dsi l Listing images for fgs fgs.7.dsi fgs.6.dsi fgs.5.dsi fgs.4.dsi fgs.3.dsi fgs.2.dsi fgs.1.dsi PASSED TEST 37 ------------------------------------------------------------------------------ TEST 38, running: dsi rmall fgs Removing all images for fgs PASSED TEST 38 ============================================================================== Summary: Executed 38 tests, ALL PASSED. Test suite executed in 0 hours 0 minutes 1 seconds. Log is: log ==============================================================================
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 28630 | C. Thomas Tyler |
Refined and simplified image file format and related terminology. Implemented rudimentary file creation/listing logic. |
||
#3 | 28093 | C. Thomas Tyler | Added stub functions. | ||
#2 | 27868 | C. Thomas Tyler |
Enhanced test suite to use a config file so tests can be easily run in a wide range of environments. |
||
#1 | 27132 | C. Thomas Tyler | Added log of tests. |