GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
sqlmarker
Browse code
• Switched to Used Cars scenario for 2014.
master
1 parent
c88a713
commit
e8348faea3338b4a2c08a47d05c3f6e4981930c3
Nigel Stanger
authored
on 7 Apr 2014
Patch
Showing
3 changed files
Unit_testing/set_truth_values
Unit_testing/test_config.php.in
UsedCars/.gitignore
Ignore Space
Show notes
View
Unit_testing/set_truth_values
#!/bin/bash # /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Assessment/STINK_student_records_Fixture_Assessment.xml.in > ../STINK_student_records/Test_classes/Assessment/STINK_student_records_Fixture_Assessment.xml # /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Enrolment/STINK_student_records_Fixture_Enrolment.xml.in > ../STINK_student_records/Test_classes/Enrolment/STINK_student_records_Fixture_Enrolment.xml # /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Result/STINK_student_records_Fixture_Result.xml.in > ../STINK_student_records/Test_classes/Result/STINK_student_records_Fixture_Result.xml # /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Student/STINK_student_records_Fixture_Student.xml.in > ../STINK_student_records/Test_classes/Student/STINK_student_records_Fixture_Student.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../UsedCars/Test_classes/Purchase/UsedCars_Fixture_Purchase.xml.in > ../UsedCars/Test_classes/Purchase/UsedCars_Fixture_Purchase.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../UsedCars/Test_classes/Sale/UsedCars_Fixture_Sale.xml.in > ../UsedCars/Test_classes/Sale/UsedCars_Fixture_Sale.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../UsedCars/Test_classes/Sales/UsedCars_Fixture_Sales.xml.in > ../UsedCars/Test_classes/Sales/UsedCars_Fixture_Sales.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" test_config.php.in > test_config.php
#!/bin/bash /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Assessment/STINK_student_records_Fixture_Assessment.xml.in > ../STINK_student_records/Test_classes/Assessment/STINK_student_records_Fixture_Assessment.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Enrolment/STINK_student_records_Fixture_Enrolment.xml.in > ../STINK_student_records/Test_classes/Enrolment/STINK_student_records_Fixture_Enrolment.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Result/STINK_student_records_Fixture_Result.xml.in > ../STINK_student_records/Test_classes/Result/STINK_student_records_Fixture_Result.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" ../STINK_student_records/Test_classes/Student/STINK_student_records_Fixture_Student.xml.in > ../STINK_student_records/Test_classes/Student/STINK_student_records_Fixture_Student.xml /usr/bin/sed -e "s/##TRUE_VALUE##/$1/g" -e "s/##FALSE_VALUE##/$2/g" test_config.php.in > test_config.php
Ignore Space
Show notes
View
Unit_testing/test_config.php.in
<?php // Define things that need to be globally accessible as constants. $scenario = 'UsedCars'; // Used to load XML fixture files, as createXMLDataSet requires an absolute path. define( 'TEST_CLASS_PATH', realpath( "../${scenario}/Test_classes" ) ); set_include_path( get_include_path() . PATH_SEPARATOR . TEST_CLASS_PATH ); define( 'ORACLE_SERVICE_ID', 'isorcl-214' ); define( 'TRUE_VALUE', '##TRUE_VALUE##' ); define( 'FALSE_VALUE', '##FALSE_VALUE##' ); ?>
<?php // Define things that need to be globally accessible as constants. $scenario = 'STINK_student_records'; // Used to load XML fixture files, as createXMLDataSet requires an absolute path. define( 'TEST_CLASS_PATH', realpath( "../${scenario}/Test_classes" ) ); set_include_path( get_include_path() . PATH_SEPARATOR . TEST_CLASS_PATH ); define( 'ORACLE_SERVICE_ID', 'isorcl-214' ); define( 'TRUE_VALUE', '##TRUE_VALUE##' ); define( 'FALSE_VALUE', '##FALSE_VALUE##' ); ?>
Ignore Space
Show notes
View
UsedCars/.gitignore
0 → 100644
UsedCars_Fixture_Purchase.xml UsedCars_Fixture_Sale.xml UsedCars_Fixture_Sales.xml
Show line notes below