mirror of
https://github.com/ToruNiina/toml11.git
synced 2024-11-21 20:10:05 +00:00
ci: install language pack to test locale
This commit is contained in:
parent
af13c2867a
commit
da3d5153d1
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -20,6 +20,7 @@ jobs:
|
|||||||
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libboost-test-dev
|
sudo apt-get install libboost-test-dev
|
||||||
|
sudo apt-get install language-pack-fr # test serializer w/ locale
|
||||||
sudo apt-get install ${{ matrix.compiler }}
|
sudo apt-get install ${{ matrix.compiler }}
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
@ -48,6 +49,7 @@ jobs:
|
|||||||
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
sudo apt-add-repository ppa:ubuntu-toolchain-r/test
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install libboost-test-dev
|
sudo apt-get install libboost-test-dev
|
||||||
|
sudo apt-get install language-pack-fr # test serializer w/ locale
|
||||||
sudo apt-get install clang-${{ matrix.compiler }}
|
sudo apt-get install clang-${{ matrix.compiler }}
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
@ -80,6 +82,7 @@ jobs:
|
|||||||
sudo apt-add-repository ppa:mhier/libboost-latest
|
sudo apt-add-repository ppa:mhier/libboost-latest
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install boost1.70
|
sudo apt-get install boost1.70
|
||||||
|
sudo apt-get install language-pack-fr # test serializer w/ locale
|
||||||
sudo apt-get install ${{ matrix.compiler }}
|
sudo apt-get install ${{ matrix.compiler }}
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
@ -119,6 +122,7 @@ jobs:
|
|||||||
sudo apt-add-repository ppa:mhier/libboost-latest
|
sudo apt-add-repository ppa:mhier/libboost-latest
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install boost1.70
|
sudo apt-get install boost1.70
|
||||||
|
sudo apt-get install language-pack-fr # test serializer w/ locale
|
||||||
sudo apt-get install clang-${{ matrix.compiler }}
|
sudo apt-get install clang-${{ matrix.compiler }}
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
@ -216,7 +220,6 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
working-directory: ./build
|
working-directory: ./build
|
||||||
run: |
|
run: |
|
||||||
./tests/test_literals --log_level=all
|
|
||||||
file --mime-encoding tests/toml/tests/example.toml
|
file --mime-encoding tests/toml/tests/example.toml
|
||||||
file --mime-encoding tests/toml/tests/fruit.toml
|
file --mime-encoding tests/toml/tests/fruit.toml
|
||||||
file --mime-encoding tests/toml/tests/hard_example.toml
|
file --mime-encoding tests/toml/tests/hard_example.toml
|
||||||
|
@ -375,6 +375,11 @@ BOOST_AUTO_TEST_CASE(test_serialize_under_locale)
|
|||||||
{
|
{
|
||||||
setloc = std::string(try_nohyphen);
|
setloc = std::string(try_nohyphen);
|
||||||
}
|
}
|
||||||
|
// In some envs, fr_FR locale has not been installed. Tests must work even in such a case.
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// BOOST_TEST(false);
|
||||||
|
// }
|
||||||
BOOST_TEST_MESSAGE("current locale at the beginning of the test = " << setloc);
|
BOOST_TEST_MESSAGE("current locale at the beginning of the test = " << setloc);
|
||||||
|
|
||||||
const std::string str = R"(
|
const std::string str = R"(
|
||||||
|
Loading…
Reference in New Issue
Block a user