xref: /aosp_15_r20/external/apache-xml/test/README.md (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1*1212f9a0SAndroid Build Coastguard Worker# Apache XML tests
2*1212f9a0SAndroid Build Coastguard Worker
3*1212f9a0SAndroid Build Coastguard Worker
4*1212f9a0SAndroid Build Coastguard Worker## The first version
5*1212f9a0SAndroid Build Coastguard Worker
6*1212f9a0SAndroid Build Coastguard WorkerThe apache XML version in AOSP is `2.7.1`. However, it's at least 16 years old.
7*1212f9a0SAndroid Build Coastguard WorkerThe `xalan-j_2_7_3-rc10` version of test sources is used because
8*1212f9a0SAndroid Build Coastguard Workerthere wasn't a clear manual how to build the tests in 2.7.1,
9*1212f9a0SAndroid Build Coastguard Workerand many bugs are fixed.
10*1212f9a0SAndroid Build Coastguard Worker
11*1212f9a0SAndroid Build Coastguard WorkerThe first version was copied with the following command:
12*1212f9a0SAndroid Build Coastguard Worker
13*1212f9a0SAndroid Build Coastguard Worker```shell
14*1212f9a0SAndroid Build Coastguard Workermkdir -p test/trace-src/org/apache/xalan/
15*1212f9a0SAndroid Build Coastguard Workercp -R $REPO/xalan-java/src/org/apache/xalan/trace/ test/trace-src/org/apache/xalan/
16*1212f9a0SAndroid Build Coastguard Workercp -R $REPO/xalan-test/java/ test/
17*1212f9a0SAndroid Build Coastguard Workercp -R $REPO/xalan-test/tests/ test/
18*1212f9a0SAndroid Build Coastguard Workercp -R $REPO/xalan-test/tools/ test/
19*1212f9a0SAndroid Build Coastguard Workerfind test/java/ -type f -name "*.class" -delete # remove the unnecessary .class files
20*1212f9a0SAndroid Build Coastguard Worker```
21*1212f9a0SAndroid Build Coastguard Worker
22*1212f9a0SAndroid Build Coastguard WorkerNote that org.apache.xalan.trace package in xalan-java
23*1212f9a0SAndroid Build Coastguard Workerhas to be imported due to dependency from the tests.
24*1212f9a0SAndroid Build Coastguard Worker
25*1212f9a0SAndroid Build Coastguard WorkerIf the test sources needs to be updated from the upstream, try to
26*1212f9a0SAndroid Build Coastguard Worker1. Remove the test sources
27*1212f9a0SAndroid Build Coastguard Worker2. Re-run the above command.
28*1212f9a0SAndroid Build Coastguard Worker3. Re-apply all the patches found in the `git`.