# # \brief Test of fetchurl # \author Emery Hemingway # \date 2016-06-05 # if {[have_spec linux] || [have_spec rpi3] || [expr [have_spec imx53] && [have_spec trustzone]]} { puts "Run script does not support this platform." exit 0 } proc socket_fs_plugin {} { global use_lxip if { $use_lxip } { return lxip } return lwip } create_boot_directory import_from_depot [depot_user]/src/[base_src] \ [depot_user]/pkg/[drivers_nic_pkg] \ [depot_user]/src/curl \ [depot_user]/src/fetchurl \ [depot_user]/src/init \ [depot_user]/src/libc \ [depot_user]/src/libcrypto \ [depot_user]/src/libssh \ [depot_user]/src/libssl \ [depot_user]/src/report_rom \ [depot_user]/src/vfs \ [depot_user]/src/vfs_[socket_fs_plugin] \ [depot_user]/src/zlib install_config { 2000-01-01 00:00 01234567890123456789 <} [socket_fs_plugin] { dhcp="yes"/> } build_boot_image {} proc qemu_nic_model {} { if [have_spec x86] { return e1000 } if [have_spec lan9118] { return lan9118 } if [have_spec zynq] { return cadence_gem } return nic_model_missing } append qemu_args " -nographic " append qemu_args " -netdev user,id=net0 " append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 " ## Uncomment to dump network traffic to file # append qemu_args " -object filter-dump,id=net0,netdev=net0,file=[run_dir].pcap" run_genode_until {child "fetchurl" exited with exit value 0} 120