Changeset 1c79996 in mainline for uspace/dist/src/bithenge


Ignore:
Timestamp:
2012-08-18T23:20:48Z (13 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a42d7d8
Parents:
1f9c9a4
Message:

Bithenge: fix issues and expand coverage for test.sh

Location:
uspace/dist/src/bithenge
Files:
8 added
2 edited
9 moved

Legend:

Unmodified
Added
Removed
  • uspace/dist/src/bithenge/fat.bh

    r1f9c9a4 r1c79996  
    7676        .size_shown <- if (.size > 32) { (32) } else { (.size) };
    7777
    78         if (.start != 0 && .start != self_start && .start != parent) {
     78        if (.start != 0 && .start != self_start && .start != parent && .filename[0] != 229) {
    7979                .data
    8080                    <- if (.attrs.subdirectory) {
  • uspace/dist/src/bithenge/repeat.bh

    r1f9c9a4 r1c79996  
    2424        .without_count <- without_count <- known_length(9);
    2525        .do_while <- do_while;
     26        .do_while_item <- (.do_while[1]);
    2627};
  • uspace/dist/src/bithenge/repeat.out

    r1f9c9a4 r1c79996  
    4141            "val": 9
    4242        }
     43    },
     44    "do_while_item": {
     45        "valid": True,
     46        "val": 4
    4347    }
    4448}
  • uspace/dist/src/bithenge/test.sh

    r1f9c9a4 r1c79996  
    1212fi
    1313
     14test_file() {
     15        echo "Testing $1 on $2..."
     16        ${BITHENGE} $1 $2 2>&1|diff $3 -
     17}
     18
    1419for BH in *.bh
    1520do
     
    1924                [ -e ${DAT} ] || continue
    2025                [ -e ${OUT} ] || continue
    21                 echo "Testing ${BH} on ${DAT}..."
    22                 ${BITHENGE} ${BH} ${DAT} 2>&1|diff ${OUT} -
     26                test_file ${BH} ${DAT} ${OUT}
    2327        done
    2428done
    2529
     30test_file trip.bh file:trip.dat trip.out
     31test_file repeat.bh hex:7f07020305070b0D11020004000800102040010101040009 repeat.out
     32
    2633echo "Done!"
Note: See TracChangeset for help on using the changeset viewer.