1 | #!/bin/bash
|
---|
2 |
|
---|
3 | source ../_local_collect_config.bash
|
---|
4 |
|
---|
5 | echo ""
|
---|
6 |
|
---|
7 | echo "****"
|
---|
8 | echo "Restoring import files back to original form"
|
---|
9 | echo "... and Initiating full rebuild"
|
---|
10 | echo "****"
|
---|
11 |
|
---|
12 | echo ""
|
---|
13 | echo "Reverting 09_1_1.item back to its original form"
|
---|
14 | /bin/cp testing-files/09_1_1.item import/09/09_1_1.item
|
---|
15 |
|
---|
16 | echo ""
|
---|
17 | echo "Reverting Item 10_1_1 txt and img files back to original version:"
|
---|
18 |
|
---|
19 | echo " import/10/text/10_1_1_1.txt"
|
---|
20 | /bin/cp testing-files/10_1_1_1.txt import/10/text/10_1_1_1.txt
|
---|
21 |
|
---|
22 | echo " import/10/images/10_1_1_1.gif"
|
---|
23 | /bin/cp testing-files/10_1_1_1.gif import/10/images/10_1_1_1.gif
|
---|
24 | echo ""
|
---|
25 |
|
---|
26 | if [ ! -d import/23 ] ; then
|
---|
27 | echo ""
|
---|
28 | echo "Restoring directory import/23"
|
---|
29 | /bin/cp -r testing-files/23 import/.
|
---|
30 | fi
|
---|
31 |
|
---|
32 | if [ -d cached ] ; then
|
---|
33 | echo ""
|
---|
34 | echo "Removeing collection cache"
|
---|
35 | /bin/rm -rf cached
|
---|
36 | fi
|
---|
37 |
|
---|
38 | ./FULL-REBUILD.sh
|
---|
39 |
|
---|
40 | if [ $? = 0 ] ; then
|
---|
41 | echo ""
|
---|
42 | echo "##############################################################################"
|
---|
43 | echo "##############################################################################"
|
---|
44 | echo "##############################################################################"
|
---|
45 | echo ""
|
---|
46 |
|
---|
47 | echo ""
|
---|
48 | echo "####"
|
---|
49 | echo "The collection has been reset and freshly rebuilt"
|
---|
50 | echo "####"
|
---|
51 |
|
---|
52 | echo ""
|
---|
53 | echo "# Test 1:"
|
---|
54 | echo "Access the collection's About Page in your browser through:"
|
---|
55 | echo " $gs_library_url/collection/$col"
|
---|
56 | echo ""
|
---|
57 | echo "The page should say that it contains 7 documents"
|
---|
58 |
|
---|
59 | echo ""
|
---|
60 | echo "# Test 2:"
|
---|
61 | echo "Access the collection's Browser by Title Classifier page (CL1):"
|
---|
62 | echo " $gs_library_url/collection/$col/browse/CL1"
|
---|
63 | echo ""
|
---|
64 | echo "It should list all 7 documents"
|
---|
65 | echo ""
|
---|
66 |
|
---|
67 | echo "####"
|
---|
68 | echo ""
|
---|
69 | fi
|
---|