From 538bbce81c7d4286bc4419d26ca6e89d7fa1dd06 Mon Sep 17 00:00:00 2001 From: Ovi Trif Date: Fri, 5 Oct 2018 13:55:04 +0200 Subject: [PATCH] Replace texttests with own fixture --- texttest/ThirtyDays.txt | 301 ++++++++++++++++++++++++ texttests/README.md | 37 --- texttests/ThirtyDays/._options.gr | Bin 4096 -> 0 bytes texttests/ThirtyDays/options.gr | 1 - texttests/ThirtyDays/stderr.gr | 0 texttests/ThirtyDays/stdout.gr | 373 ------------------------------ texttests/config.gr | 35 --- texttests/environment.gr | 3 - texttests/testsuite.gr | 2 - 9 files changed, 301 insertions(+), 451 deletions(-) create mode 100644 texttest/ThirtyDays.txt delete mode 100644 texttests/README.md delete mode 100755 texttests/ThirtyDays/._options.gr delete mode 100755 texttests/ThirtyDays/options.gr delete mode 100755 texttests/ThirtyDays/stderr.gr delete mode 100644 texttests/ThirtyDays/stdout.gr delete mode 100755 texttests/config.gr delete mode 100755 texttests/environment.gr delete mode 100755 texttests/testsuite.gr diff --git a/texttest/ThirtyDays.txt b/texttest/ThirtyDays.txt new file mode 100644 index 00000000..9e65f2e5 --- /dev/null +++ b/texttest/ThirtyDays.txt @@ -0,0 +1,301 @@ + +DAY 0 +Item(name=+5 Dexterity Vest, sellIn=10, quality=20) +Item(name=Aged Brie, sellIn=2, quality=0) +Item(name=Elixir of the Mongoose, sellIn=5, quality=7) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=15, quality=20) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=10, quality=49) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=5, quality=49) +Item(name=Conjured Mana Cake, sellIn=3, quality=6) +DAY 1 +Item(name=+5 Dexterity Vest, sellIn=9, quality=19) +Item(name=Aged Brie, sellIn=1, quality=1) +Item(name=Elixir of the Mongoose, sellIn=4, quality=6) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=14, quality=21) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=9, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=4, quality=50) +Item(name=Conjured Mana Cake, sellIn=2, quality=5) +DAY 2 +Item(name=+5 Dexterity Vest, sellIn=8, quality=18) +Item(name=Aged Brie, sellIn=0, quality=2) +Item(name=Elixir of the Mongoose, sellIn=3, quality=5) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=13, quality=22) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=8, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=3, quality=50) +Item(name=Conjured Mana Cake, sellIn=1, quality=4) +DAY 3 +Item(name=+5 Dexterity Vest, sellIn=7, quality=17) +Item(name=Aged Brie, sellIn=-1, quality=4) +Item(name=Elixir of the Mongoose, sellIn=2, quality=4) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=12, quality=23) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=7, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=2, quality=50) +Item(name=Conjured Mana Cake, sellIn=0, quality=3) +DAY 4 +Item(name=+5 Dexterity Vest, sellIn=6, quality=16) +Item(name=Aged Brie, sellIn=-2, quality=6) +Item(name=Elixir of the Mongoose, sellIn=1, quality=3) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=11, quality=24) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=6, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=1, quality=50) +Item(name=Conjured Mana Cake, sellIn=-1, quality=1) +DAY 5 +Item(name=+5 Dexterity Vest, sellIn=5, quality=15) +Item(name=Aged Brie, sellIn=-3, quality=8) +Item(name=Elixir of the Mongoose, sellIn=0, quality=2) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=10, quality=25) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=5, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=0, quality=50) +Item(name=Conjured Mana Cake, sellIn=-2, quality=0) +DAY 6 +Item(name=+5 Dexterity Vest, sellIn=4, quality=14) +Item(name=Aged Brie, sellIn=-4, quality=10) +Item(name=Elixir of the Mongoose, sellIn=-1, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=9, quality=27) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=4, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-1, quality=0) +Item(name=Conjured Mana Cake, sellIn=-3, quality=0) +DAY 7 +Item(name=+5 Dexterity Vest, sellIn=3, quality=13) +Item(name=Aged Brie, sellIn=-5, quality=12) +Item(name=Elixir of the Mongoose, sellIn=-2, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=8, quality=29) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=3, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-2, quality=0) +Item(name=Conjured Mana Cake, sellIn=-4, quality=0) +DAY 8 +Item(name=+5 Dexterity Vest, sellIn=2, quality=12) +Item(name=Aged Brie, sellIn=-6, quality=14) +Item(name=Elixir of the Mongoose, sellIn=-3, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=7, quality=31) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=2, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-3, quality=0) +Item(name=Conjured Mana Cake, sellIn=-5, quality=0) +DAY 9 +Item(name=+5 Dexterity Vest, sellIn=1, quality=11) +Item(name=Aged Brie, sellIn=-7, quality=16) +Item(name=Elixir of the Mongoose, sellIn=-4, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=6, quality=33) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=1, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-4, quality=0) +Item(name=Conjured Mana Cake, sellIn=-6, quality=0) +DAY 10 +Item(name=+5 Dexterity Vest, sellIn=0, quality=10) +Item(name=Aged Brie, sellIn=-8, quality=18) +Item(name=Elixir of the Mongoose, sellIn=-5, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=5, quality=35) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=0, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-5, quality=0) +Item(name=Conjured Mana Cake, sellIn=-7, quality=0) +DAY 11 +Item(name=+5 Dexterity Vest, sellIn=-1, quality=8) +Item(name=Aged Brie, sellIn=-9, quality=20) +Item(name=Elixir of the Mongoose, sellIn=-6, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=4, quality=38) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-1, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-6, quality=0) +Item(name=Conjured Mana Cake, sellIn=-8, quality=0) +DAY 12 +Item(name=+5 Dexterity Vest, sellIn=-2, quality=6) +Item(name=Aged Brie, sellIn=-10, quality=22) +Item(name=Elixir of the Mongoose, sellIn=-7, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=3, quality=41) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-2, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-7, quality=0) +Item(name=Conjured Mana Cake, sellIn=-9, quality=0) +DAY 13 +Item(name=+5 Dexterity Vest, sellIn=-3, quality=4) +Item(name=Aged Brie, sellIn=-11, quality=24) +Item(name=Elixir of the Mongoose, sellIn=-8, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=2, quality=44) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-3, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-8, quality=0) +Item(name=Conjured Mana Cake, sellIn=-10, quality=0) +DAY 14 +Item(name=+5 Dexterity Vest, sellIn=-4, quality=2) +Item(name=Aged Brie, sellIn=-12, quality=26) +Item(name=Elixir of the Mongoose, sellIn=-9, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=1, quality=47) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-4, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-9, quality=0) +Item(name=Conjured Mana Cake, sellIn=-11, quality=0) +DAY 15 +Item(name=+5 Dexterity Vest, sellIn=-5, quality=0) +Item(name=Aged Brie, sellIn=-13, quality=28) +Item(name=Elixir of the Mongoose, sellIn=-10, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=0, quality=50) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-5, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-10, quality=0) +Item(name=Conjured Mana Cake, sellIn=-12, quality=0) +DAY 16 +Item(name=+5 Dexterity Vest, sellIn=-6, quality=0) +Item(name=Aged Brie, sellIn=-14, quality=30) +Item(name=Elixir of the Mongoose, sellIn=-11, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-1, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-6, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-11, quality=0) +Item(name=Conjured Mana Cake, sellIn=-13, quality=0) +DAY 17 +Item(name=+5 Dexterity Vest, sellIn=-7, quality=0) +Item(name=Aged Brie, sellIn=-15, quality=32) +Item(name=Elixir of the Mongoose, sellIn=-12, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-2, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-7, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-12, quality=0) +Item(name=Conjured Mana Cake, sellIn=-14, quality=0) +DAY 18 +Item(name=+5 Dexterity Vest, sellIn=-8, quality=0) +Item(name=Aged Brie, sellIn=-16, quality=34) +Item(name=Elixir of the Mongoose, sellIn=-13, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-3, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-8, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-13, quality=0) +Item(name=Conjured Mana Cake, sellIn=-15, quality=0) +DAY 19 +Item(name=+5 Dexterity Vest, sellIn=-9, quality=0) +Item(name=Aged Brie, sellIn=-17, quality=36) +Item(name=Elixir of the Mongoose, sellIn=-14, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-4, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-9, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-14, quality=0) +Item(name=Conjured Mana Cake, sellIn=-16, quality=0) +DAY 20 +Item(name=+5 Dexterity Vest, sellIn=-10, quality=0) +Item(name=Aged Brie, sellIn=-18, quality=38) +Item(name=Elixir of the Mongoose, sellIn=-15, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-5, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-10, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-15, quality=0) +Item(name=Conjured Mana Cake, sellIn=-17, quality=0) +DAY 21 +Item(name=+5 Dexterity Vest, sellIn=-11, quality=0) +Item(name=Aged Brie, sellIn=-19, quality=40) +Item(name=Elixir of the Mongoose, sellIn=-16, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-6, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-11, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-16, quality=0) +Item(name=Conjured Mana Cake, sellIn=-18, quality=0) +DAY 22 +Item(name=+5 Dexterity Vest, sellIn=-12, quality=0) +Item(name=Aged Brie, sellIn=-20, quality=42) +Item(name=Elixir of the Mongoose, sellIn=-17, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-7, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-12, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-17, quality=0) +Item(name=Conjured Mana Cake, sellIn=-19, quality=0) +DAY 23 +Item(name=+5 Dexterity Vest, sellIn=-13, quality=0) +Item(name=Aged Brie, sellIn=-21, quality=44) +Item(name=Elixir of the Mongoose, sellIn=-18, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-8, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-13, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-18, quality=0) +Item(name=Conjured Mana Cake, sellIn=-20, quality=0) +DAY 24 +Item(name=+5 Dexterity Vest, sellIn=-14, quality=0) +Item(name=Aged Brie, sellIn=-22, quality=46) +Item(name=Elixir of the Mongoose, sellIn=-19, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-9, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-14, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-19, quality=0) +Item(name=Conjured Mana Cake, sellIn=-21, quality=0) +DAY 25 +Item(name=+5 Dexterity Vest, sellIn=-15, quality=0) +Item(name=Aged Brie, sellIn=-23, quality=48) +Item(name=Elixir of the Mongoose, sellIn=-20, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-10, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-15, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-20, quality=0) +Item(name=Conjured Mana Cake, sellIn=-22, quality=0) +DAY 26 +Item(name=+5 Dexterity Vest, sellIn=-16, quality=0) +Item(name=Aged Brie, sellIn=-24, quality=50) +Item(name=Elixir of the Mongoose, sellIn=-21, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-11, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-16, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-21, quality=0) +Item(name=Conjured Mana Cake, sellIn=-23, quality=0) +DAY 27 +Item(name=+5 Dexterity Vest, sellIn=-17, quality=0) +Item(name=Aged Brie, sellIn=-25, quality=50) +Item(name=Elixir of the Mongoose, sellIn=-22, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-12, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-17, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-22, quality=0) +Item(name=Conjured Mana Cake, sellIn=-24, quality=0) +DAY 28 +Item(name=+5 Dexterity Vest, sellIn=-18, quality=0) +Item(name=Aged Brie, sellIn=-26, quality=50) +Item(name=Elixir of the Mongoose, sellIn=-23, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-13, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-18, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-23, quality=0) +Item(name=Conjured Mana Cake, sellIn=-25, quality=0) +DAY 29 +Item(name=+5 Dexterity Vest, sellIn=-19, quality=0) +Item(name=Aged Brie, sellIn=-27, quality=50) +Item(name=Elixir of the Mongoose, sellIn=-24, quality=0) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=0, quality=80) +Item(name=Sulfuras, Hand of Ragnaros, sellIn=-1, quality=80) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-14, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-19, quality=0) +Item(name=Backstage passes to a TAFKAL80ETC concert, sellIn=-24, quality=0) +Item(name=Conjured Mana Cake, sellIn=-26, quality=0) \ No newline at end of file diff --git a/texttests/README.md b/texttests/README.md deleted file mode 100644 index 7f8a53ca..00000000 --- a/texttests/README.md +++ /dev/null @@ -1,37 +0,0 @@ -# TextTest regression tests - -This folder contains Text-Based tests for the GildedRose Refactoring Kata. - -These tests are designed to be used with the open source testing tool "TextTest", available from http://texttest.org You can run them without it too though, see below. - -## Running without TextTest - -This should be perfectly possible, but is probably less convenient than using TextTest. - -Write a script that will execute the SUT (see "config.gr" for details of the executables), giving the commandline options listed in "options.gr". Collect the output from standard output in a file, and diff that against the golden copy "stdout.gr". Any diff is a test failure. - -## Running with TextTest - -- Install TextTest (see http://texttest.org) -- set $TEXTTEST_HOME environment variable to point at the "texttests" folder -- run texttest using a command like "python texttest.py -a gr" - -This should start the GUI for the TextTest tool. - -Each test case has it's own subdirectory. The name of the directory is the name of the test - in this case "ThirtyDays". The "Golden Copy" of the output for that test case is kept in that directory. In this case we have three files: - -- __stderr.gr__ - the expected output to Standard Error (stderr) -- __stdout.gr__ - the expected output to Standard Output (stdout) -- __options.gr__ - the options to give on the command line when you run the System Under Test (SUT) - -In the directory above, there are configuration files for TextTest: - -- __config.gr__ - this tells TextTest where to find the SUT executable, and sets up options for how it runs the SUT and interprets the output. -- __environment.gr__ - this file lists environment variables that will be set before TextTest runs the SUT. This is especially important for Java applications, that must set the CLASSPATH environment variable in order to run properly. -- __testsuite.gr__ - lists the constituent test cases of this suite. Change the order of the entries here to change the order they appear in the TextTest GUI. - -To run a test, click on it in the GUI and select "Run". TextTest will run it in a temporary (sandbox) directory and report the results. If the test fails, you can double click on a file to see the diff against the Golden Copy. - -If you run into difficulties with TextTest, there is documentation available on [texttest.org](http://texttest.org), or you can ask a question on the [mailing list](https://lists.sourceforge.net/lists/listinfo/texttest-users). - - diff --git a/texttests/ThirtyDays/._options.gr b/texttests/ThirtyDays/._options.gr deleted file mode 100755 index 5ffc020ca9a07576f2666083de5aca2ad8d1ca85..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4096 zcmeH~u?oU45QeXUh#lN?l5)O4QP<+&1BjpgNW}TK83I0Yxp8H)gtKP zEZo6y`H%b|_iYF5K?hm@3&wG|#tk-6_n_-@3eday>UHl95Jdj`Bj#zkN-nqR<$$xl zKKil*UN`+dH+h^hZcWadC}Pg6aBvLkk8q>PT;mMK$x|z-g;$d#JbgV#k_Zq1B0vO) z01+SpM1Tko0U|&Ih(Nt;*7=Mm-N^#2C`@U&z|7b^O6`Pp(rBjC0hP!cZWYsezkxQc Ozb>EizegEDR8