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