<s> import os <EOL> import qisys . sh <EOL> import qibuild . config <EOL> import qitoolchain <EOL> import pytest <EOL> def test_simple ( qitoolchain_action , tmpdir , toolchains ) : <EOL> this_dir = os . path . dirname ( __file__ ) <EOL> json_c_bz2_path_src = os . path . join ( this_dir , "<STR_LIT>" , "<STR_LIT>" ) <EOL> json_c_bz2_path = tmpdir . join ( "<STR_LIT>" ) . strpath <EOL> qisys . sh . install ( json_c_bz2_path_src , json_c_bz2_path ) <EOL> res = qitoolchain_action ( "<STR_LIT>" , <EOL> "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , json_c_bz2_path ) <EOL> qitoolchain_action ( "<STR_LIT>" , "<STR_LIT:test>" ) <EOL> qibuild . config . add_build_config ( "<STR_LIT:test>" , toolchain = "<STR_LIT:test>" ) <EOL> qitoolchain_action ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:test>" , res ) <EOL> toolchain = qitoolchain . get_toolchain ( "<STR_LIT:test>" ) <EOL> assert toolchain . get_package ( "<STR_LIT>" ) <EOL> def test_rpm ( qitoolchain_action , tmpdir ) : <EOL> rpm = tmpdir . ensure ( "<STR_LIT>" , file = True ) <EOL> with pytest . raises ( NotImplementedError ) : <EOL> qitoolchain_action ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , <EOL> "<STR_LIT>" , rpm . strpath ) </s>
