| 1 | #!/bin/sh |
| 2 | |
| 3 | # Author: Ross Gammon <[email protected]> |
| 4 | # |
| 5 | # autopkgtest check: Tests that gramps can import the sample gedcom file and |
| 6 | # export it in the .gpkg format, and then import the example gramps database |
| 7 | # and export it in gedcom format. |
| 8 | |
| 9 | set -e |
| 10 | |
| 11 | echo "--------------------------------" |
| 12 | echo "GEDCOM to Gramps conversion test" |
| 13 | echo "--------------------------------" |
| 14 | echo "Retrieving sample gedcom" |
| 15 | cp /usr/share/doc/gramps/example/gedcom/sample.ged . |
| 16 | echo "Importing gedcom into gramps and exporting a gramps .gpkg file" |
| 17 | gramps -i sample.ged -e sample.gpkg |
| 18 | echo "-----------------------------------" |
| 19 | echo "GEDCOM to Gramps conversion SUCCESS" |
| 20 | echo "-----------------------------------" |
| 21 | echo |
| 22 | |
| 23 | echo "--------------------------------" |
| 24 | echo "Gramps to GEDCOM conversion test" |
| 25 | echo "--------------------------------" |
| 26 | echo "Retrieving example gramps file" |
| 27 | cp /usr/share/doc/gramps/example/gramps/example.gramps . |
| 28 | echo "Importing gramps file into gramps and exporting a gedcom" |
| 29 | gramps -i example.gramps -e example.ged |
| 30 | echo "-----------------------------------" |
| 31 | echo "Gramps to GEDCOM conversion SUCCESS" |
| 32 | echo "-----------------------------------" |
| 33 | echo |
| 34 | echo "gramps-import-export: TEST PASSED" |